﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Wrapper;

namespace Test
{
    /// <summary>
    /// Logique d'interaction pour MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        unsafe public MainWindow()
        {
            //InitializeComponent();
            WrapperAlgo algo = new WrapperAlgo();
            int*** c = algo.Map_computeGeneration(20);
            int** v = algo.Map_computeProposition(5, 14, 2);
            StreamWriter monStreamWriter = new StreamWriter("./out.txt");;
            for (int i = 0; i < 5; i++)
            {
                for (int j = 0; j < 20; j++)
                {
                    System.Console.WriteLine(c[i][j][0]);
                    // Instanciation du StreamWriter avec passage du nom du fichier 
                    monStreamWriter.WriteLine((int)WrapperAlgo.terrain.MONTAGNE);
                }
                    
            }
            monStreamWriter.Close(); 
        }
    }
}
